<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<meta content="text/html;charset=UTF-8"/>
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
	<meta http-equiv ="Pragma" content = "no-cache"/>
	<meta http-equiv="Cache-Control" content="no cache" />
	<meta http-equiv="Expires" content="0" />
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
	<meta name="apple-mobile-web-app-status-bar-style" content="black"/>
	<meta name="apple-mobile-web-app-capable" content="yes"/>
	<meta name="format-detection" content="telephone=no"/>
	<script src="https://cdn.bootcss.com/pace/1.0.2/pace.min.js"></script>
	<link href="https://cdn.bootcss.com/pace/1.0.2/themes/pink/pace-theme-flash.css" rel="stylesheet">
	<link rel="stylesheet" type="text/css" href="../../plugins/layui/css/layui.css" media="all"/>
	<link rel="stylesheet" type="text/css" href="../../css/fs.css" media="all"/>
	<script type="text/javascript" src="../../plugins/jquery/jquery.min.js"></script>
	<script type="text/javascript" src="../../plugins/home/common.js"></script>
	<script type="text/javascript" src="../../plugins/layui/layui.js"></script>
	<script src="https://cdn.bootcss.com/layer/2.3/layer.js"></script>
	<script type="text/javascript" src="../../plugins/frame/js/fsDict.js"></script>
	<script type="text/javascript" src="../../plugins/frame/js/fs.js"></script>
	<script type="text/javascript" src="../../plugins/frame/js/frame.js"></script>
</head>
<body>
<div >
	<div class="layui-fluid">
		<div class="layui-row layui-col-space1">
			<div class="layui-col-md12">
				<div class="layui-form-query">
					<form class="layui-form" id="query_form">
						<input type="hidden" name="contractId"/>
						<div class="layui-form-item" style="display: none">
							<div class="layui-inline">
								<label class="layui-form-mid">操作时间：</label>
								<div class="layui-input-inline" style="width: 150px;">
								<input type="text" class="layui-input" id="createDate"  placeholder='请输入操作时间'>								</div>
							</div>
							<div class="layui-inline">
								<label class="layui-form-mid">操作人：</label>
								<div class="layui-input-inline" style="width: 130px;">
									<input type="text" name="userName" autocomplete="off" class="layui-input" placeholder='请输入操作人' />
								</div>
							</div>
							<div class="layui-inline">
								<label class="layui-form-mid">操作内容：</label>
								<div class="layui-input-inline" style="width: 130px;">
									<input type="text" name="operLog" autocomplete="off" class="layui-input" placeholder='请输入操作内容' />
								</div>
							</div>

							<div class="layui-inline">
								<div class="layui-input-inline">
									<button class="layui-btn" type="button" function="query"><i class="layui-icon">&#xe615;</i>查询</button>
								</div>
							</div>
						</div>
					</form>
				</div>
			</div>
			<div class="layui-col-md12">
				<div class="layui-row grid-demo">

					<div class="layui-col-md12">
						<table id="fsDatagrid" lay-filter="fsDatagrid" class="fsDatagrid" isLoad="1" url="/constractSignLog/findAllListPage.shtml" isPage="1" sortType="1" defaultForm="query_form" height="full-135"></table>

						<div class="fsDatagridCols">
							<p type="numbers" title="序号"/>
							<p field="createDate" title="操作时间" width="160" sort="true"/>
							<p field="userName" title="操作人" width="160" sort="true"/>
							<p field="operLog" title="操作内容" width="360" sort="true"/>

							<!--<p fixed="right" align="center" width="160" toolbar="#barDemo" title="操作"/>-->
						</div>
						<script type="text/html" id="barDemo">
							<a id="edit" class="layui-btn layui-btn-xs" lay-event="top" topUrl="edit.html" topMode="edit" topWidth="600px" topHeight="400px" isSelect="1" topTitle="编辑信息" inputs="id:">编辑</a>
							<a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="top" topUrl="edit.html" topMode="readonly" topWidth="600px" topHeight="400px" topTitle="查看" inputs="id:">查看</a>
							<a id="del" class="layui-btn layui-btn-danger layui-btn-xs" lay-event="submit" isConfirm="1" url="/app-yunhetong-center/constractSignLog/delete.shtml" inputs="id:">删除</a>
						</script>
						<script type="text/html" id="column2Tpl">
							{{# if(d.userType=='PERSONAL'){}}
							<span style="color: #5FB878">个人用户</span>
							{{#} else if(d.userType=='INSTITUTION'){}}
							<span style="color: #5FB878"> 企业</span>
							{{#} else if(d.userType=='INVESTMENT_MANAGER'){}}
							<span style="color: #5FB878"> 客户经理</span>
							{{#} else if(d.userType=='FAMILY'){}}
							<span style="color: #5FB878"> 家庭</span>
							{{#} else {}}
							<span style="color: #5FB878"> </span>
							{{#}}}
						</script>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>

<script type="text/javascript">

    layui.fsButton.kfapp = function(elem,data,datagrid){

        datagrid.reload();
        alert("测试自定义按钮2"+JSON.stringify(datagrid));
    }

</script>
</body>
</html>
<script type="text/javascript">
layui.use('laydate', function(){
  var laydate = layui.laydate;
  //常规用法
  laydate.render({
    elem: '#createDate'
  });
  }); 
</script>
